package cn.agiledata.bank.myspace.service;

import cn.agiledata.bank.common.util.PageBean;
import cn.agiledata.bank.hibernateBean.PeerInnerAccount;
import cn.agiledata.bank.myspace.bean.PeerInnerAccountBean;
import cn.agiledata.bank.myspace.bean.PeerInnerAccountQueryBean;
import cn.agiledata.bank.myspace.exception.MySpaceException;

public interface PeerInnerAccountService {
	/**
	 * 得到账户列表
	 * @param bean
	 * @return
	 */
	public PageBean getPeerInnerAccountList(PeerInnerAccountQueryBean bean);
	/**
	 * 根据联系人id得到联系人
	 * @param id
	 * @return
	 */
	public PeerInnerAccount getPeerInnerAccount(long id);
	/**
	 * 验证输入的Email或者手机是否合乎规则
	 * @param emailOrMobile
	 * @return
	 * @throws MySpaceException
	 */
	public String validateEmailOrMobile(String emailOrMobile,String myAccountId) throws MySpaceException;
	/**
	 * 新增账户
	 * @param p
	 */
	public void peerInnerAccountAdd(PeerInnerAccountBean bean) throws MySpaceException;
	/**
	 * 修改账户
	 * @param id
	 * @throws MySpaceException
	 */
	public void peerInnerAccountModify(PeerInnerAccountBean bean)  throws MySpaceException;
	/**
	 * 删除账户
	 * @param id
	 */
	public void peerInnerAccountDelete(String id);
}
